package com.zhu.ttwords.presenter;

import com.zhu.ttwords.bean.MainBean;
import com.zhu.ttwords.model.IMainModel;
import com.zhu.ttwords.model.MainModel;
import com.zhu.ttwords.view.activity.IMainActivity;

/**
 * Created by KnightYe on 2015/4/4.
 * 主页面业务逻辑处理中心
 */
public class MainPresenter {
    IMainActivity activity;
    IMainModel model;

    public MainPresenter(IMainActivity activity) {
        this.activity = activity;
        this.model = new MainModel();
    }

    public void init() {
        MainBean bean = model.loadMainData();
        activity.updateMainDate(bean);

    }
}
